/**
 * Created by xuyan on 16/12/16.
 */
/*关于我们轮播效果*/
$("#testimonials").owlCarousel({
    items: 1,
    itemsDesktop: [1199,1],
    itemsDesktopSmall: [979,1],
    itemsTablet: [768,1],
    autoPlay: true
});
/*定向导航*/
$("a.page-scroll").click(function () {
    $(this).parents().addClass("active").siblings().removeClass("active");
    if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
        var target = $(this.hash);
        target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
        if (target.length) {
            $('html,body').animate({
                scrollTop: target.offset().top - 50
            }, 900);
            return false;
        }
    }
});
//console.log("Create time: 2016-12-04\nAuthor: Wilson Xu")
/*点击向下箭头，跳至services页面*/
$("a.fa-angle-down").click(function(){
    var wH = $(window).height();
    $('html,body').animate({
        scrollTop: wH - 50
    }, 900);
});
